//
//  FreeMarketCell.m
//  umbs
//
//  Created by 冷山 on 16/6/15.
//  Copyright © 2016年 冷山. All rights reserved.
//

#import "FreeMarketCell.h"

@implementation FreeMarketCell

- (void)awakeFromNib {
    [super awakeFromNib];
    self.ui_imageView.layer.masksToBounds = YES;
    self.ui_imageView.layer.cornerRadius = 12.5;
    
    self.ui_buyButton.layer.masksToBounds = YES;
    self.ui_buyButton.layer.cornerRadius = 5;
    self.ui_buyButton.layer.borderWidth = 1;
    self.ui_buyButton.layer.borderColor = [ColorManager colorWithHexString:@"#E45252"].CGColor;
    
    self.ui_operator.layer.masksToBounds = YES;
    self.ui_operator.layer.cornerRadius = 3;
}
- (IBAction)buyAction:(UIButton*)sender
{
    [_delegate buyNowAction:sender];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
